class GameSceneView extends egret.Sprite 
{
	public static gameScene: GameSceneView;
	private thisContainer: egret.Sprite;
	public constructor()
	{
		super();
		GameSceneView.gameScene = this;
		this.initView();
	}

	private initView(): void
	{
		this.thisContainer = new egret.Sprite();
		this.addChild(this.thisContainer);
		this.start();
	}

	public start(): void
	{
		this.removeAll();
		var gameStart: GameStartView = new GameStartView();
		this.thisContainer.addChild(gameStart);
	}

	public play(): void
	{
		console.log("GameSceneView.play");
		this.removeAll();
		var gamePlay: GamePlayView = new GamePlayView();
		this.thisContainer.addChild(gamePlay);
		gamePlay.showGame(GameData.curScene);
	}

	public over(): void
	{
		this.removeAll();
		var gameOver: GameOverView = new GameOverView();
		this.thisContainer.addChild(gameOver);
	}

	private removeAll(): void
	{
		this.thisContainer.removeChildren();
	}

}